package com.dq.repository.service;

import com.dq.domain.service.ServiceProject;
import com.dq.domain.service.ServiceProjectCategory;
import com.dq.domain.service.centre.ServiceProjectCategoryCentre;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author CF
 * 岗位门店关联
 */
public interface ServiceProjectCategoryCentreRepository extends JpaRepository<ServiceProjectCategoryCentre, Long> {

    /**
     * 根据 服务项目
     * @param deleted
     * @param serviceProject
     * @return
     */
    List<ServiceProjectCategoryCentre> findByDeletedAndServiceProjectOrderByIdDesc(Boolean deleted, ServiceProject serviceProject);
    /**
     * 根据分类查中间表
     * @param serviceProjectCategory
     * @return
     */
    List<ServiceProjectCategoryCentre> findByServiceProjectCategory(ServiceProjectCategory serviceProjectCategory);

}
